package com.ruoyi.project.meal.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 服务对象报餐记录对象 meal_service_objects
 * 
 * @author ywy
 * @date 2024-03-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MealServiceObjects extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public MealServiceObjects(){

    }
    public MealServiceObjects(String className,String campus,String reportingPerson,Date reportDate,String foodType){
        this.className=className;
        this.campus=campus;
        this.reportingPerson=reportingPerson;
        this.reportDate=reportDate;
        this.foodType=foodType;
    }
    /** id */
    private Integer id;

    /** 上报时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上报时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reportDate;

    /** 班级 */
    @Excel(name = "班级")
    private String className;

    /** 食物类型 */
    private String foodType;

    /** 院区 */
    private String campus;

    /** 填报人 */
    @Excel(name = "填报人")
    private String reportingPerson;

    /** 早-孤儿 */
    @Excel(name = "早-孤儿")
    private Integer mOrphan;

    /** 早-事无 */
    @Excel(name = "早-事无")
    private Integer mNothing;

    /** 早-政府 */
    @Excel(name = "早-政府")
    private Integer mGove;

    /** 早-特困 */
    @Excel(name = "早-特困")
    private Integer mPoor;

    /** 早-自费 */
    @Excel(name = "早-自费")
    private Integer mExpense;

    /** 早-餐标 */
    @Excel(name = "早-餐标")
    private Integer mDining;

    /** 午-孤儿 */
    @Excel(name = "午-孤儿")
    private Integer lOrphan;

    /** 午-事无 */
    @Excel(name = "午-事无")
    private Integer lNothing;

    /** 午-政府 */
    @Excel(name = "午-政府")
    private Integer lGove;

    /** 午-特困 */
    @Excel(name = "午-特困")
    private Integer lPoor;

    /** 午-自费 */
    @Excel(name = "午-自费")
    private Integer lExpense;

    /** 午-餐标 */
    @Excel(name = "午-餐标")
    private Integer lDining;

    /** 晚-孤儿 */
    @Excel(name = "晚-孤儿")
    private Integer dOrphan;

    /** 晚-事无 */
    @Excel(name = "晚-事无")
    private Integer dNothing;

    /** 晚-政府 */
    @Excel(name = "晚-政府")
    private Integer dGove;

    /** 晚-特困 */
    @Excel(name = "晚-特困")
    private Integer dPoor;

    /** 晚-自费 */
    @Excel(name = "晚-自费")
    private Integer dExpense;

    /** 晚-餐标 */
    @Excel(name = "晚-餐标")
    private Integer dDining;

    /** 晚-孤儿 */
    @Excel(name = "宵-孤儿")
    private Integer xOrphan;

    /** 晚-事无 */
    @Excel(name = "宵-事无")
    private Integer xNothing;

    /** 晚-政府 */
    @Excel(name = "宵-政府")
    private Integer xGove;

    /** 晚-特困 */
    @Excel(name = "宵-特困")
    private Integer xPoor;

    /** 晚-自费 */
    @Excel(name = "宵-自费")
    private Integer xExpense;

    /** 晚-餐标 */
    @Excel(name = "宵-餐标")
    private Integer xDining;

    /** 晚-孤儿 */
    @Excel(name = "自-孤儿")
    private Integer zOrphan;

    /** 晚-事无 */
    @Excel(name = "自-事无")
    private Integer zNothing;

    /** 晚-政府 */
    @Excel(name = "自-政府")
    private Integer zGove;

    /** 晚-特困 */
    @Excel(name = "自-特困")
    private Integer zPoor;

    /** 晚-自费 */
    @Excel(name = "自-自费")
    private Integer zExpense;

    /** 晚-餐标 */
    @Excel(name = "宵-餐标")
    private Integer zDining;



    private  int ofruit;
    private  int nfruit;
    private  int gfruit;
    private  int pfruit;
    private  int efruit;
    private int ocooker;
    private int ncooker;
    private int gcooker;
    private int pcooker;
    private int ecooker;
    private int omilk;
    private int nmilk;
    private int gmilk;
    private int pmilk;
    private int emilk;

    private int miklTotal;
    private int fruitTotal;
    private int cookerTotal;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上报时间")
    private String reportDateStr;


    public String getReportDateStr() {
        if(this.reportDate!=null){
            reportDateStr= DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD,this.reportDate);
        }
        return reportDateStr;
    }


    public int getMiklTotal() {
        return omilk+nmilk+pmilk+gmilk+emilk;
    }

    public int getFruitTotal() {
        return ofruit+nfruit+gfruit+pfruit+efruit;
    }

    public int getCookerTotal() {
        return ocooker+ncooker+gcooker+pcooker+efruit;
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getReportDate() {
        return reportDate;
    }

    public void setReportDate(Date reportDate) {
        this.reportDate = reportDate;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getFoodType() {
        return foodType;
    }

    public void setFoodType(String foodType) {
        this.foodType = foodType;
    }

    public String getCampus() {
        return campus;
    }

    public void setCampus(String campus) {
        this.campus = campus;
    }

    public String getReportingPerson() {
        return reportingPerson;
    }

    public void setReportingPerson(String reportingPerson) {
        this.reportingPerson = reportingPerson;
    }

    public Integer getmOrphan() {
        return mOrphan;
    }

    public void setmOrphan(Integer mOrphan) {
        this.mOrphan = mOrphan;
    }

    public Integer getmNothing() {
        return mNothing;
    }

    public void setmNothing(Integer mNothing) {
        this.mNothing = mNothing;
    }

    public Integer getmGove() {
        return mGove;
    }

    public void setmGove(Integer mGove) {
        this.mGove = mGove;
    }

    public Integer getmPoor() {
        return mPoor;
    }

    public void setmPoor(Integer mPoor) {
        this.mPoor = mPoor;
    }

    public Integer getmExpense() {
        return mExpense;
    }

    public void setmExpense(Integer mExpense) {
        this.mExpense = mExpense;
    }

    public Integer getmDining() {
        return mDining;
    }

    public void setmDining(Integer mDining) {
        this.mDining = mDining;
    }

    public Integer getlOrphan() {
        return lOrphan;
    }

    public void setlOrphan(Integer lOrphan) {
        this.lOrphan = lOrphan;
    }

    public Integer getlNothing() {
        return lNothing;
    }

    public void setlNothing(Integer lNothing) {
        this.lNothing = lNothing;
    }

    public Integer getlGove() {
        return lGove;
    }

    public void setlGove(Integer lGove) {
        this.lGove = lGove;
    }

    public Integer getlPoor() {
        return lPoor;
    }

    public void setlPoor(Integer lPoor) {
        this.lPoor = lPoor;
    }

    public Integer getlExpense() {
        return lExpense;
    }

    public void setlExpense(Integer lExpense) {
        this.lExpense = lExpense;
    }

    public Integer getlDining() {
        return lDining;
    }

    public void setlDining(Integer lDining) {
        this.lDining = lDining;
    }

    public Integer getdOrphan() {
        return dOrphan;
    }

    public void setdOrphan(Integer dOrphan) {
        this.dOrphan = dOrphan;
    }

    public Integer getdNothing() {
        return dNothing;
    }

    public void setdNothing(Integer dNothing) {
        this.dNothing = dNothing;
    }

    public Integer getdGove() {
        return dGove;
    }

    public void setdGove(Integer dGove) {
        this.dGove = dGove;
    }

    public Integer getdPoor() {
        return dPoor;
    }

    public void setdPoor(Integer dPoor) {
        this.dPoor = dPoor;
    }

    public Integer getdExpense() {
        return dExpense;
    }

    public void setdExpense(Integer dExpense) {
        this.dExpense = dExpense;
    }

    public Integer getdDining() {
        return dDining;
    }

    public void setdDining(Integer dDining) {
        this.dDining = dDining;
    }

    public int getOfruit() {
        return ofruit;
    }

    public void setOfruit(int ofruit) {
        this.ofruit = ofruit;
    }

    public int getNfruit() {
        return nfruit;
    }

    public void setNfruit(int nfruit) {
        this.nfruit = nfruit;
    }

    public int getGfruit() {
        return gfruit;
    }

    public void setGfruit(int gfruit) {
        this.gfruit = gfruit;
    }

    public int getPfruit() {
        return pfruit;
    }

    public void setPfruit(int pfruit) {
        this.pfruit = pfruit;
    }

    public int getEfruit() {
        return efruit;
    }

    public void setEfruit(int efruit) {
        this.efruit = efruit;
    }

    public int getOcooker() {
        return ocooker;
    }

    public void setOcooker(int ocooker) {
        this.ocooker = ocooker;
    }

    public int getNcooker() {
        return ncooker;
    }

    public void setNcooker(int ncooker) {
        this.ncooker = ncooker;
    }

    public int getGcooker() {
        return gcooker;
    }

    public void setGcooker(int gcooker) {
        this.gcooker = gcooker;
    }

    public int getPcooker() {
        return pcooker;
    }

    public void setPcooker(int pcooker) {
        this.pcooker = pcooker;
    }

    public int getEcooker() {
        return ecooker;
    }

    public void setEcooker(int ecooker) {
        this.ecooker = ecooker;
    }

    public int getOmilk() {
        return omilk;
    }

    public void setOmilk(int omilk) {
        this.omilk = omilk;
    }

    public int getNmilk() {
        return nmilk;
    }

    public void setNmilk(int nmilk) {
        this.nmilk = nmilk;
    }

    public int getGmilk() {
        return gmilk;
    }

    public void setGmilk(int gmilk) {
        this.gmilk = gmilk;
    }

    public int getPmilk() {
        return pmilk;
    }

    public void setPmilk(int pmilk) {
        this.pmilk = pmilk;
    }

    public int getEmilk() {
        return emilk;
    }

    public void setEmilk(int emilk) {
        this.emilk = emilk;
    }

    public void setMiklTotal(int miklTotal) {
        this.miklTotal = miklTotal;
    }

    public void setFruitTotal(int fruitTotal) {
        this.fruitTotal = fruitTotal;
    }

    public void setCookerTotal(int cookerTotal) {
        this.cookerTotal = cookerTotal;
    }

    public void setReportDateStr(String reportDateStr) {
        this.reportDateStr = reportDateStr;
    }

    public Integer getxOrphan() {
        return xOrphan;
    }

    public void setxOrphan(Integer xOrphan) {
        this.xOrphan = xOrphan;
    }

    public Integer getxNothing() {
        return xNothing;
    }

    public void setxNothing(Integer xNothing) {
        this.xNothing = xNothing;
    }

    public Integer getxGove() {
        return xGove;
    }

    public void setxGove(Integer xGove) {
        this.xGove = xGove;
    }

    public Integer getxPoor() {
        return xPoor;
    }

    public void setxPoor(Integer xPoor) {
        this.xPoor = xPoor;
    }

    public Integer getxExpense() {
        return xExpense;
    }

    public void setxExpense(Integer xExpense) {
        this.xExpense = xExpense;
    }

    public Integer getxDining() {
        return xDining;
    }

    public void setxDining(Integer xDining) {
        this.xDining = xDining;
    }

    public Integer getzOrphan() {
        return zOrphan;
    }

    public void setzOrphan(Integer zOrphan) {
        this.zOrphan = zOrphan;
    }

    public Integer getzNothing() {
        return zNothing;
    }

    public void setzNothing(Integer zNothing) {
        this.zNothing = zNothing;
    }

    public Integer getzGove() {
        return zGove;
    }

    public void setzGove(Integer zGove) {
        this.zGove = zGove;
    }

    public Integer getzPoor() {
        return zPoor;
    }

    public void setzPoor(Integer zPoor) {
        this.zPoor = zPoor;
    }

    public Integer getzExpense() {
        return zExpense;
    }

    public void setzExpense(Integer zExpense) {
        this.zExpense = zExpense;
    }

    public Integer getzDining() {
        return zDining;
    }

    public void setzDining(Integer zDining) {
        this.zDining = zDining;
    }
}
